home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / cujoct93.zip / 1110070B < prev    next >
Text File  |  1993-07-16  |  990b  |  28 lines

  1. #ifndef RANDM
  2. # define RANDM
  3. # define FS       400  /* Full Scale (graph ht) */
  4. # define SPAN     400  /* Graph width           */
  5. # define OFFX     200  /* X-offset for viewport */
  6. # define OFFY     460  /* Y-offset for viewport */
  7.  
  8. # define MAXWTLEN 15   /* Max no. filter wts.   */
  9. # define ESC      0x1b
  10. # define K0       6.2832/nbin   /*  2*PI/nbin   */
  11. # define uint     unsigned int
  12. # define RAND     struct distribution
  13. # define DIM(a)   (sizeof(a)/sizeof(a[0]))
  14.  
  15.   typedef uint  index;
  16.  
  17.   RAND
  18.   { int   nobjs;      /* no. of distinct objects     */
  19.     int   npick;      /* no. of random picks         */
  20.     int   (* prob)(); /* Pts to probability function */
  21.     index ev_indx;    /* Index of current event      */
  22.     int   nbin;       /* no. of distinct events      */
  23.     int   ndat;       /* Accumulative no. of events  */
  24.     float delta;      /* Width of interval           */
  25.     char  **labls;    /* Points to label array       */
  26.   };
  27. #endif
  28.